package com.example.springaop.controller;

import com.example.springaop.config.MyAspect;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
@Slf4j
public class UserCotroller {
    @MyAspect
    @RequestMapping("/u1")
    public String u1(){
        log.info("u1");
        return "u1";
    }
    @RequestMapping("/u2")
    public String u2(){
        int x=10/0;
        log.info("u2");
        return "u2";
    }
}
